Sponsored Content
Top Forums Programming Fork and then exec problem with signals Post 302460353 by Corona688 on Wednesday 6th of October 2010 02:15:41 PM
Old 10-06-2010
Why would it get SIGHUP when SIGHUP has already been handled?
 

10 More Discussions You Might Find Interesting

1. Programming

Fork and exec

Hello! I am working on a server where I should have 4 (resident)processes, one of them being "the father" of the others, so I do 3 forks. The problem that I have is that I do an accept (for sockets) in the "father" process and I want to transmit the job to one of the processes "child" with... (3 Replies)
Discussion started by: driki
3 Replies

2. Programming

Problem with signals - 3 process communication

Hello, I would like to ask you for a little help with program I'm working on. I have problems with signals and synchronizing processes (I'm quite new to this part of programming). Process "parent" creates new child process "child1" and this process creates new child process "child2". The... (2 Replies)
Discussion started by: Nightwright
2 Replies

3. UNIX for Dummies Questions & Answers

FORK/EXEC technique

Hi! Can someone explain me exactly this technique? Why a process (PARENT) creates a copy of itself with FORK (CHILD)? What's the reason of this behaviour? Sorry, but I cannot understand the logic behind it. Thanks. (4 Replies)
Discussion started by: marshmallow
4 Replies

4. Programming

fork/exec clobbers write. I need ideas why...

On my *nix box, I have a telegram program. When I go like tel person "la\nla\nla\n" the person sees "la\nla\nla\n" However, when I have a program that forks and execs tel like: pid = fork(); if (pid < 0) { perror("fork failed"); exit(EXIT_FAILURE); } if (pid == 0) {... (7 Replies)
Discussion started by: frequency8
7 Replies

5. Solaris

fork and exec ftp

Hi, I need to find/implement an application that FTPs (puts) all new files in a certain directory to an external storage unit. This application should check for new files every 10 seconds (leaving the FTP connection open in between the 10 seconds). The easiest way would be if there are... (2 Replies)
Discussion started by: KittyJ
2 Replies

6. Shell Programming and Scripting

fork and exec

I need to ssh to a remote server and run my script there. This is my script. $ssh = "ssh username@host"; $cmd = "$ssh 'cd <my dir> && < sudo Run_exe>'"; my $pid = fork; if ($pid == 0){ exec $cmd; } When I run this I get: pccons_getchar: got r == 0 (1 Reply)
Discussion started by: looza
1 Replies

7. Programming

How forbid use fork() in exec() program.

Hello World! I am writing code in C++ which have to launch another application X using exec(). I would like to set some limits on it using setrlimit etc... My problem is that i don't know how to forbid using fork() and strlimit by application X. How can i do it? (3 Replies)
Discussion started by: kzi
3 Replies

8. Programming

Newbie question on exec,fork, wait,pipe C

Hello everybody.I want to make clear that i am not going to ask from anybody to build my asignement but i have a big problem. I can't seem to find anywhere ONE good example on C about what i am trying to do:wall:.I think it is simple. All i ask is one example, even a link is fine. So, i want to... (1 Reply)
Discussion started by: Cuervo
1 Replies

9. UNIX for Dummies Questions & Answers

fork with exec

What is is difference between 'fork with exec' and 'fork without exec'? How both are related? (1 Reply)
Discussion started by: kkalyan
1 Replies

10. UNIX for Beginners Questions & Answers

Question about global environment variables & fork() exec()

Hello... And thanks in advance for any help anyone can offer me on my question! I've been doing a lot of reading to try and find my answer... But I haven't had any luck What I'm trying to understand is where a child process inherits global environment variables from? I understand the exec()... (2 Replies)
Discussion started by: bodisha
2 Replies
ZHM(8)							      System Manager's Manual							    ZHM(8)

NAME
zhm - Zephyr HostManager SYNOPSIS
/usr/sbin/zhm [ -d ] [ -n ] [ -h ] [ -r ] [ -i ] [ -f ] [ -N ] [ server ... ] DESCRIPTION
Zhm is the link between a client machine and the zephyr server. All notices sent from programs on the client are funneled through zhm. This allows all client programs to be much simpler in function, since the HostManager is responsible for handling errors, retransmitting lost notices, and holding all notices until they are acknowledged. The -d option turns on debugging mode, and sends its information to syslog LOG_DAEMON messages. The -n option causes zhm to not attempt to put itself in the background. The -h option causes zhm to send a shutdown message and exit upon delivery of a SIGHUP signal. The normal action on SIGHUP is to send a flush notice to the zephyr server. The -r option causes zhm to send a boot notice to the server and exit when the notice is acknowledged. The -i option indicates that zhm is being started by inetd(8). When this option is specified, zhm assumes that file descriptor zero (0) is bound to the UDP datagram port designated for hostmanager use. In this mode, SIGHUP is handled as if the -h option were specified. The -f option disables the "flush" operation which allows any client to flush all subscriptions for the host. The -N option supresses the initial "boot" message that flushes all subscriptions for the host, which is useful if you're restarting zhm on a host that people are using. The optional server arguments are used to replace the set of server names supplied by the hesiod(3) name server. SEE ALSO
zephyr(1), zephyrd(8), inetd(8) Project Athena Technical Plan Section E.4.1, `Zephyr Notification Service' AUTHOR
David C. Jedlinsky, MIT Project Athena RESTRICTIONS
Copyright (c) 1987,1988 by the Massachusetts Institute of Technology. All Rights Reserved. zephyr(1) specifies the terms and conditions for redistribution. MIT Project Athena November 1, 1988 ZHM(8)
All times are GMT -4. The time now is 09:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy