delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/02/10:21:47

X-Spam-Check-By: sourceware.org
Date: Fri, 2 Dec 2005 10:21:35 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Peter <pli9+PUB AT borkborkbork DOT itsa DOT ucsf DOT edu>
cc: cygwin AT cygwin DOT com
Subject: Re: screen-4.0.2 on Cygwin 1.5.R18-1
In-Reply-To: <Pine.LNX.4.64.0512020110450.27976@upf.uneineq.rqh>
Message-ID: <Pine.GSO.4.63.0512021017170.27528@slinky.cs.nyu.edu>
References: <1133503614 DOT 349 DOT ezmlm AT cygwin DOT com> <Pine DOT LNX DOT 4 DOT 64 DOT 0512020110450 DOT 27976 AT upf DOT uneineq DOT rqh>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Fri, 2 Dec 2005, Peter wrote:

> I got screen to compile with very minor source code changes (more
> changes might be better, but I haven't fiddled too much).  Everything
> seems to work okay, except that I can't get screen to persist once I
> close my terminal window.

How exactly do you invoke screen?  Does "setsid" work for you?  Does
"nohup"?  IIRC, bash also has an option for controlling whether background
processes are terminated on exit...

> I tried running screen "-d -m" as a service through cygrunsrv, but with
> little success.  When it runs as SYSTEM I can't attach the screen, and
> when it runs as me it hangs immediately.  It seems to hang eventually
> when running as SYSTEM too, but it's hard to tell what's going on.
>
> Anyone who can tell me a better way?

What is the error message when screen runs as SYSTEM?  I suspect it's a
fifo permission issue...

As for hanging does it consume CPU at all?  Try attaching to the process
with strace and seeing where it hangs.

If you wish for others to try reproducing your behavior, please post the
"minor changes" you mentioned above (as a patch).
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019