Logo Search packages:      
Sourcecode: waimea version File versions  Download package

void restart ( char *  command  ) 

Restarts program.

Deletes the waimea object and restarts window manager.

Parameters:
command Program name to execute when restarting

Definition at line 375 of file Waimea.cc.

Referenced by signalhandler().

                            {
    char *tmp_argv[128];
    char *__m_wastrdup_tmp;
    
    if (command) {
        commandline_to_argv(__m_wastrdup(command), tmp_argv);
        delete waimea;
        execvp(*tmp_argv, tmp_argv);
        perror(*tmp_argv);
        exit(EXIT_FAILURE);
    } else
        delete waimea;
    execvp(argv[0], argv);
    perror(argv[0]);
    exit(EXIT_FAILURE);
}


Generated by  Doxygen 1.6.0   Back to index