Changeset 3116 for neercs


Ignore:
Timestamp:
Oct 27, 2008, 10:14:56 AM (12 years ago)
Author:
Pascal Terjan
Message:
  • Don't exit the process if exec suceeded
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/grab.c

    r2999 r3116  
    5555
    5656    child = mytrace_fork(parent);
    57     mytrace_exec(parent, "/usr/bin/reset");
    58     mytrace_exit(parent, 0); /* In case the execve failed */
     57    ret = mytrace_exec(parent, "/usr/bin/reset");
     58    if(ret < 0)
     59        mytrace_exit(parent, 0);
    5960    mytrace_detach(parent);
    6061    mytrace_write(child, 1, "\x1b[H\x1b[2J", 7);
Note: See TracChangeset for help on using the changeset viewer.