Results 1 to 3 of 3

Thread: "icegridnode --daemon" does not detach from controlling terminal?

  1. #1
    dstn is offline Registered User
    Name: Dustin Lang
    Organization: University of Toronto
    Project: Astrometry.net
    Join Date
    Nov 2008
    Posts
    15

    "icegridnode --daemon" does not detach from controlling terminal?

    Hi,

    I just figured out a workaround for this problem, but I thought I'd post a note anyway for the next person to hit this...

    When I run:
    icegridnode --daemon [args] > logfile 2> errfile

    I find that it does not fully detach from the controlling TTY - the symptom is that when you "exit" your SSH session, ssh hangs.
    OpenSSH FAQ

    I redirected /dev/null to stdin and that solved this problem:
    icegridnode --daemon [args] > logfile 2> errfile < /dev/null

    I think "icegridnode" should close() stdin -- it doesn't read from stdin, right?

    Cheers,
    dustin.

    PS, this is with Ice 3.3.0, SSH "OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006", on "CentOS release 5.2 (Final)" (rockscluster.org) platform.
    Last edited by dstn; 12-01-2008 at 12:24 PM.

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Dustin,

    Thanks for the tip. We'll try to incorporate this in the next release.

    Bernard
    Bernard Normier
    ZeroC, Inc.

  3. #3
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi Dustin,

    I'm afraid we were unable to reproduce this problem with a similar configuration. The IceGrid node already closes stdin and then redirects it to /dev/null unless you start it with --noclose.

    Any chance this could be caused by another process?

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 01-31-2011, 07:32 PM
  2. Replies: 1
    Last Post: 06-09-2009, 10:53 PM
  3. Replies: 1
    Last Post: 01-28-2009, 06:15 AM
  4. Replies: 4
    Last Post: 10-26-2006, 11:23 AM
  5. Replies: 1
    Last Post: 04-05-2004, 08:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •