Re: ls problem on solaris 5.8

From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 01/29/04


Date: Thu, 29 Jan 2004 08:56:02 GMT

In article
<604905b75b661268523b275f34a8a42c.60620@mygate.mailgate.org>,
 "Luca Ferrari" <fluca1978@libero.it> wrote:

> pipe() = 4 [5]
> fork() = 4821
> close(5) = 0
> close(2) = 0
> fstat64(4, 0xFFBEF908) = 0
> brk(0x00076988) = 0
> brk(0x00078988) = 0
> ioctl(4, TCGETA, 0xFFBEF894) Err#22 EINVAL
> read(4, 0x0007624C, 5120) = 0
> llseek(4, 0, SEEK_CUR) Err#29 ESPIPE
> close(4) = 0

I think you've got a bogus "ls" command. I can't think of a reason why
it would need to fork a child process and talk to it with a pipe.

Maybe you've been rootkitted.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


Relevant Pages

  • Re: Help (OS homework assignment in Unix)
    ... >> using the fork command to create the child process. ... > memory, etc), and set up the communication medium. ...
    (comp.unix.programmer)
  • Re: Spawning process with environment variables
    ... process exits parent process exits too. ... The simple way to solve this is to call fork before. ... read its exit return code (what child process' main returns) ... If you don't mind a shell running the command for you simply use ...
    (comp.unix.programmer)
  • Re: the counterpart of lib$spawn on Linux/UNIX?
    ... > fork() looks like the Unix equivalent, but it's been a while, and I ... > forget how you pass the child process a command to execute. ...
    (comp.os.vms)
  • Re: return of fork()?
    ... This would make grammatical sense also because a 'fork' traditionally is a two-pronged thing. ... The parent already exists. ... In a command shell, for example, the parent is the shell. ... When you time a command it is executed as a child process: ...
    (comp.os.minix)
  • Re: sync in a C program?
    ... i think that it is better to go with an fork() + ... exec() command. ... the reason i didn't really want to use exec is because it is easy to ...
    (comp.unix.programmer)