Changeset 3319


Ignore:
Timestamp:
Nov 8, 2008, 1:30:20 AM (11 years ago)
Author:
Pascal Terjan
Message:
  • Wait for reset to exit before displaying nice message
File:
1 edited

Legend:

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

    r3116 r3319  
    2626#include <sys/types.h>
    2727#include <sys/stat.h>
     28#include <sys/wait.h>
    2829
    2930#if defined HAVE_LINUX_KDEV_T_H
     
    5960        mytrace_exit(parent, 0);
    6061    mytrace_detach(parent);
     62    waitpid(pid, NULL, 0); /* Wait for reset to finish before displaying */
    6163    mytrace_write(child, 1, "\x1b[H\x1b[2J", 7);
    62     mytrace_write(child, 1, "\n[Process stolen by neercs]\n", 28);
     64    mytrace_write(child, 1, "\n[Process stolen by neercs]\r\n\n", 30);
    6365    pid = mytrace_getpid(child);
    6466
Note: See TracChangeset for help on using the changeset viewer.