Please check out Dark Risings !

Member Discussions

terms



[Previous] [Next] [Post] [Reply] [Topics] [Summary] [Search]


1. A big -sigh- for SIGHUP, and nohup isn't working... Sun Mar 27, 2011 [4:18 PM]
melopene
vickie@nacave.com
member since: Oct 30, 2000
Reply
Hey folks, long time. Really really long time. I used to
post bunches around here, like, 5-10 years ago.

I found myself with a LOT of free time on my hands, and
thought I'd boot up my mud code again, see how far I got,
maybe tinker a bit. A friend who runs an ISP set me up with
a shell account on his backhaul server, and amazingly I was
able to compile the bastardized version of ROM/ROT/I don't
even know what with just a few minor errors and boot the
thing up.

So, here's the issue: SIGHUP. I continually get the
following error thrown (when I run it in GDB):
Program received signal SIGHUP, Hangup.
0x00002aaaaafcd323 in __select_nocancel () from
/lib64/libc.so.6

Yeah, I've tried running both the startup script and a
manual boot using 'nohup', but no dice. I've found a few
references to bits and pieces of code that can be added in
to the executable, but seeing as how it's been five years
since I've messed around with code at all (much less linux),
I'm not starting out with that sans guidance.

Also, I understand this could potentially be related to a
firewall issue, from some other reading, but am unsure how
to investigate.

Any suggestions, moving forward?


2. RE: A big -sigh- for SIGHUP, and nohup isn't working... Sun Mar 27, 2011 [8:13 PM]
Sombalance
Email not supplied
member since: Aug 17, 1999
In Reply To
Reply
I hate to ask, but are you placing an & at the end of the
command when you run it nohup?

nohup ./some_mud_command &

Sombalance


3. RE: A big -sigh- for SIGHUP, and nohup isn't working... Sun Mar 27, 2011 [8:54 PM]
melopene
vickie@nacave.com
member since: Oct 30, 2000
In Reply To
Reply
Of course I am with the startup script - always have, and
unless I've missed something, who knows.

Here's something else curious: Friend says it's actually a
mail server with shell access. The disconnects seem to be
coming at approximately 3 minute intervals, so I think there's
a script on the server trying to kill me off.

Is there a quickie way around it, code-wise, or should I just
find a different shell to tinker on? I was just hoping to be
able to piddle around for a week or two before deciding what I
wanted to do.


4. RE: A big -sigh- for SIGHUP, and nohup isn't working... Sun Mar 27, 2011 [10:21 PM]
Tyche
Email not supplied
member since: Apr 4, 2000
In Reply To
Reply

melopene wrote:
Is there a quickie way around it, code-wise


signal( SIGHUP, SIG_IGN );
The Sourcery - http://sourcery.dyndns.org
TeensyMud - http://teensymud.kicks-ass.org
"A man can receive nothing, except it be given him from heaven."


5. RE: A big -sigh- for SIGHUP, and nohup isn't working... Sun Mar 27, 2011 [11:10 PM]
melopene
vickie@nacave.com
member since: Oct 30, 2000
In Reply To
Reply
signal( SIGHUP, SIG_IGN );


Tyche, I've seen that very line of code posted, but with no
reference as to where it should go or how it should be
handled. That's a source of a lot of confusion for me at the
moment, since I've always been wary of messing around in
comm.c.


6. RE: A big -sigh- for SIGHUP, and nohup isn't working... Mon Mar 28, 2011 [2:22 AM]
Tyche
Email not supplied
member since: Apr 4, 2000
In Reply To
Reply
Well there's a similar statement, signal( SIGPIPE, SIG_IGN );, near the beginning of game_loop_unix in stock ROMs. So insert it before or after there.

Unless your fingers are tremendously fat, I don't foresee problems. You might consider the notion of backing up your code manually or using source control before you make changes.
The Sourcery - http://sourcery.dyndns.org
TeensyMud - http://teensymud.kicks-ass.org
"A man can receive nothing, except it be given him from heaven."


7. RE: A big -sigh- for SIGHUP, and nohup isn't working... Mon Mar 28, 2011 [2:38 AM]
KaVir
Email not supplied
member since: Aug 19, 1999
In Reply To
Reply
Hi melopene, long time no see!

> Here's something else curious: Friend says it's actually
> a mail server with shell access. The disconnects seem to
> be coming at approximately 3 minute intervals, so I think
> there's a script on the server trying to kill me off.

Seems very likely. Have you tried running a simple stock codebase and seeing if it does the same thing?

They may not be happy about failing to kill your process though. If you just want to experiment you might be better off using cygwin, or finding space on one of those free mud hosts.
God Wars II: http://www.godwars2.org (godwars2.org 3000) Roomless world. Manual combat. Endless possibilities.
MudLab: http://www.mudlab.org


8. RE: A big -sigh- for SIGHUP, and nohup isn't working... Mon Mar 28, 2011 [3:13 AM]
melopene
vickie@nacave.com
member since: Oct 30, 2000
In Reply To
Reply
KaVir, it's great to see you, as always (and you too,
Tyche!).

Yeah, it's doing the exact same thing even with the code
teak, and even in QuickMUD. I'm so hesitant to find a free
server, because I remember the kind of reputation that there
was back in the day, and I know cygwin will give me tons of
headaches.

Maybe I'll take the plunge, and maybe I'll just decide to
wait until my friend sets up his own linux box. Unless one
of you want to give me a couple weeks' access to see what's
up? :D

It's really great to know y'all are still here.

-Melly



9. RE: A big -sigh- for SIGHUP, and nohup isn't working... Mon Mar 28, 2011 [12:45 PM]
welcor
Email not supplied
member since: Mar 9, 2000
In Reply To
Reply
melopene wrote:
...and I know cygwin will give me tons of
headaches.
...

While cygwin once was troublesome, it's been cleaned up very much the last couple of years. I suggest you give it a try.


10. RE: A big -sigh- for SIGHUP, and nohup isn't working... Mon Mar 28, 2011 [2:38 PM]
Idealiad
Email not supplied
member since: Jan 16, 2006
In Reply To
Reply
There's always the option of Virtualbox or some other VM
software too.




[Previous] [Next] [Post] [Reply] [Topics] [Summary] [Search]