Changeset 28158 for trunk/Ohana/src/opihi/pcontrol/pcontrol.c.in
- Timestamp:
- May 28, 2010, 11:51:46 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pcontrol/pcontrol.c.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pcontrol/pcontrol.c.in
r18098 r28158 1 1 # include "pcontrol.h" 2 3 # define STDERR_FILE "pcontrol.log" 2 4 3 5 # define opihi_name "PCONTROL" … … 24 26 signal (SIGTSTP, gotsignal); 25 27 signal (SIGTTIN, gotsignal); 28 29 // stdin / stdout are used for communication with pantasks. 30 // redirect stderr so various error messages are saved 31 stderr = freopen (STDERR_FILE, "a", stderr); 32 if (!stderr) { 33 fprintf (stdout, "failed to open %s for error output\n", STDERR_FILE); 34 exit (1); 35 } 26 36 27 37 rl_readline_name = opihi_name;
Note:
See TracChangeset
for help on using the changeset viewer.
