Re: /etc/init.d/opendkim fails to start opendkim when run over ssh with a pseudo-tty

From: Murray S. Kucherawy <>
Date: Sun, 17 Apr 2011 18:51:32 -0700 (PDT)

On Sun, 17 Apr 2011, Sam Umbach wrote:
> I think I see what's happening now: the parent process exits and the pty
> is torn down before the child process ever starts running (and has a
> chance to close its file handles and call setsid()). Since the pty is
> the child process' controlling terminal, the child is terminated.

Since fork() clones all descriptors, why would a close() of them in the
parent (implicit or explicit) cause the tear-down of the pty? There's
still a descriptor open to it in the child.
Received on Mon Apr 18 2011 - 01:51:56 PST

This archive was generated by hypermail 2.3.0 : Mon Oct 29 2012 - 23:20:17 PST