Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 14495

A process is an instance of a computer program that is being executed.

6
votes
One -- admittedly heavy-handed -- approach is to use strace: $ strace -e trace=none -e signal=none -p 12345 will watch the process with PID 12345, intercepting no system call (first -e) and no … signals (second -e). Once the process exits in a regular way, the exit value will be printed. If the process is terminated by a signal, strace exits silently (when run with the options given above). You …
answered Aug 15 '13 by Ansgar Esztermann
106
votes
Yes, it is. First, create a pipe: mkfifo /tmp/fifo. Use gdb to attach to the process: gdb -p PID Then close stdin: call close (0); and open it again: call open ("/tmp/fifo", 0600) Finally, write away (from a different terminal, as gdb will probably hang): echo blah > /tmp/fifo …
answered Feb 16 '12 by Ansgar Esztermann