s3-printing: Add child handler to bq process
authorSimo Sorce <idra@samba.org>
Wed, 10 Aug 2011 12:59:44 +0000 (08:59 -0400)
committerAndreas Schneider <asn@samba.org>
Wed, 10 Aug 2011 16:14:05 +0000 (18:14 +0200)
commitdd4ff4bfdd3338bc5102fdcdcfea75dc9cf0be8a
tree3f30f725154531ea778d1061a9ec72c3fc7bfe7a
parentbefc53927363b6619ef306da56c4a5d15dfa8ed2
s3-printing: Add child handler to bq process

The cups backend forks a child to do asynchronous work.
We need a sigchld handler in bq to properly wait for the chilod to finish and
reap it, otherwise it hangs the forever as a zombie process.

Signed-off-by: Andreas Schneider <asn@samba.org>
source3/printing/queue_process.c