[cs631apue] HW3 - have to press return sometimes when daemon is running

Jan Schaumann jschauma at stevens.edu
Wed Oct 30 23:22:32 EDT 2013


Tejas Nadkarni <tnadkarn at stevens.edu> wrote:
 
> So that cursor is for the $ prompt at the top. Is there anyway around this
> or just have to live with this?

At this stage there is not much point in having your program daemonize,
as HW3 requires you to print information to stdout.  You can choose to
do several things:

- not daemonize in HW3
- implement the '-d' flag so that you won't daemonize if that is passed
- implement logging and have the program generate output to the log file
  instead

-Jan


More information about the cs631apue mailing list