process icon indicating copy to clipboard operation
process copied to clipboard

Library for dealing with system processes

Results 39 process issues
Sort by recently updated
recently updated
newest added

I am a maintainer of the [obelisk framework](https://github.com/obsidiansystems/obelisk). This week, I had to debug a very strange issue where some shell escaping was "working on my machine"™, but not my...

Add documentation and implement the escaping logic for `%` noted in https://flatt.tech/research/posts/batbadbut-you-cant-securely-execute-commands-on-windows/.

#279 replaced `vfork` calls with `fork`, but `fork` can perform substantially worse when the process has a large memory footprint. Ideally we would use `posix_spawn` instead, but (when setting the...

#### shell command :- mkdir -p ./{new/{new1,new2},old} #### tested with :- callProcess "mkdir" ["-p" , "./{new/{new1,new2},old}"] callCommand "mkdir -p ./{new/{new1,new2},old}" #### result :- . ├── {new │ └── {new1,new1},old} ####...

I'm trying to fix #189. Closing file descriptors in a reliable and portable way is not simple. The best summary I found of the different approaches available is in this...

The way that process attributes are handled on Posix platforms is that we call a function just after `fork` and before `exec`. This allows common actions like: * [ ]...

This test verifies that the `use_process_jobs` feature works as advertised. Specifically: on Windows `waitForProcess` should not return until all processes created by the child (including those created with `fork`) have...

On Linux, setuid and setgid both take locks, so neither is safe to call in the child after vfork(). Instead, use syscall to issue a raw system call to the...

Background: * https://lwn.net/Articles/789023/ * https://lwn.net/Articles/794707/ The problem `Pid`s in [`ProcessHandle`](https://hackage.haskell.org/package/process-1.6.10.0/docs/System-Process.html#t:ProcessHandle)s is that on most system they are limited to 2^16 many by default. If you spawn many short-lived processes quickly,...

Background: * https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.9-Close-Range * https://lwn.net/Articles/789023/ As written in https://github.com/haskell/process/blob/cb1d1a6ead68f0e1b209277e79ec608980e9ac84/System/Process/Common.hs#L91 > This implementation will call `close()` an every fd from 3 to the maximum of open files, which can be slow...