- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Strange Behaviour
Operating System - Linux
1752646
Members
5678
Online
108788
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-05-2008 10:18 AM
тАО09-05-2008 10:18 AM
Strange Behaviour
I have script which boots up one of the application and once I try to logout of the session from which I issued the script it just hangs, one of the SAs told me that there is a file descriptor that hangs.
Have you faced this situation before.
How I need to logout in order to escape the file desricptor.
Thanks,
Allan.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2008 10:02 AM
тАО09-06-2008 10:02 AM
Re: Strange Behaviour
Please help!!
Thanks,
Allan
Thanks,
Allan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2008 07:23 PM
тАО09-06-2008 07:23 PM
Re: Strange Behaviour
> Please help!!
You first.
It just might be helpful to know what "the
application" might be, and what's in "the
script", and even, perhaps, which OS you're
running.
If "the application" expects to talk to the
controlling terminal, and you whack the
controlling terminal by logging out, then
"the application" might have some trouble
continuing to run.
> Have you faced this situation before.
Is that a question. It's hard to say with so
little information about this situation?
> How I need to logout in order to escape the
> file desricptor.
Not sure what that means, but you may need to
redirect the input to "the application"
before you can log out. Some programs may
not lend themselves to being started in an
interactive mode, and then told to switch to
a batch mode.
> [...] boots up one of the application [...]
Also, I'm probably too old-fashioned, but
where I come from, an OS can pull itself up
by its own bootstraps, but a user just _runs_
an application, he doesn't boot it. (Unless
it's really bad, in which case he might boot
it out the door.)
You first.
It just might be helpful to know what "the
application" might be, and what's in "the
script", and even, perhaps, which OS you're
running.
If "the application" expects to talk to the
controlling terminal, and you whack the
controlling terminal by logging out, then
"the application" might have some trouble
continuing to run.
> Have you faced this situation before.
Is that a question. It's hard to say with so
little information about this situation?
> How I need to logout in order to escape the
> file desricptor.
Not sure what that means, but you may need to
redirect the input to "the application"
before you can log out. Some programs may
not lend themselves to being started in an
interactive mode, and then told to switch to
a batch mode.
> [...] boots up one of the application [...]
Also, I'm probably too old-fashioned, but
where I come from, an OS can pull itself up
by its own bootstraps, but a user just _runs_
an application, he doesn't boot it. (Unless
it's really bad, in which case he might boot
it out the door.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2008 08:28 AM
тАО09-08-2008 08:28 AM
Re: Strange Behaviour
Usually that happens because the process does not detach from its controlling terminal properly. When a process daemonizes it's supposed to close its stdin, stdout, and stderr file descriptors. If it doesn't do that your ssh logout will hang waiting for all of its file descriptors to close. It's usually safe to just close the session forcibly (click the close box or use a client escape sequence).
The "right" way to fix that specific problem is for whoever wrote the app to learn how to correctly daemonize a UNIX process. Failing that, you may be able to just redirect all the I/O when you start it or use some kind of wrapper that does it for you.
The "right" way to fix that specific problem is for whoever wrote the app to learn how to correctly daemonize a UNIX process. Failing that, you may be able to just redirect all the I/O when you start it or use some kind of wrapper that does it for you.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP