Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now

Posted on: Apr 4 2003, 06:37 PM

Whats this Lie-nix Thing?

Group: Members
Posts: 1
Joined: 4-April 03
Member No.: 631

I have written a daemon process that is started as the system boots into run level 5 (i.e. I have a symbolic link in /etc/rc.d/rc5.d to /etc/rc.d/init.d). This daemon in turn uses the typical fork()/exec() combination to spawn processes (lets call it new_process):

if ((pid = fork() == 0) {
if (execv("new_process", NULL)) {

If the "new_process" calls system(3), or tries to execute another process by using the fork()/exec() method mentioned earlier, I always seem to get a failure with errno == 13, access denied.

If I start the daemon on the command line, I never get this problem, only when it is started as the system boots into runlevel 5.

Any ideas on why this occurs?
  Forum: Technical Support · Post Preview: #1935 · Replies: 1 · Views: 2,141

New Posts  New Replies
No New Posts  No New Replies
Hot topic  Hot Topic (New)
No new  Hot Topic (No New)
Poll  Poll (New)
No new votes  Poll (No New)
Closed  Locked Topic
Moved  Moved Topic

RSS Lo-Fi Version Time is now: 25th May 2018 - 05:55 AM