[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#3038: SOLVED: can't remove print jobs

Carlos Carvalho writes ("Re: Bug#3038: SOLVED: can't remove print jobs"):
> Ian Jackson (ian@chiark.chu.cam.ac.uk) wrote on 17 May 1996 14:24:
>  >This means that kill(,0) is almost always a mistake.
>  >
>  >Could you check to see whether lpr is failing to check this, and if so
>  >report it as a bug ?
> It's lpd in the case of a remote printer, but it's certainly doing it.
> I think the point is that it's going to remove the files, so it should
> kill any process that has them open. How can it determine the pid's of
> the processes?

I don't know - I don't know the code for lpr/lpd intimately.  Didn't
it start the processes ?  If so it's probably still their parent.
Perhaps they're all in a particular process group (if it knows that at
least one process in the process group is still around then the
process group must be too) ?  Perhaps there's an IPC mechanism like a
pipe that can be closed ?


Reply to: