aboutsummaryrefslogtreecommitdiffhomepage
path: root/System/Posix/Process
Commit message (Collapse)AuthorAge
* Convert /since/ to @since syntaxGravatar Herbert Valerio Riedel2016-04-19
|
* Use more direct CApiFFI for pPrPr_disableITimersGravatar Herbert Valerio Riedel2016-01-31
|
* Drop redundant __GLASGOW_HASKELL__ conditionals for GHC>=7.4Gravatar Herbert Valerio Riedel2016-01-31
|
* Drop bitrotting HUGS supportGravatar Herbert Valerio Riedel2016-01-31
| | | | | It's very unlikely the current `unix` code stands any chance of even remotely work with Hugs...
* Add CTYPE annotations to ptr types used for FFIGravatar Herbert Valerio Riedel2016-01-30
| | | | | This avoids incompatible-pointer warnings from the c-compiler when using `CApiFFI`
* Replace `<sys/wait.h>` macro wrappers with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* Replace `__hsunix_times` wrapper with CApiFFIGravatar Herbert Valerio Riedel2016-01-30
|
* More fixes for Safe Haskell bounds under GHC 7.10Gravatar David Terei2014-12-08
|
* `M-x untabify` && `M-x delete-trailing-whitespace`Gravatar Herbert Valerio Riedel2014-12-06
|
* Refactor local `execvpe(3)` implementationGravatar Herbert Valerio Riedel2014-12-06
| | | | | | | | | | | | | | | | | The previous code was prone to conflicts with when the platform happens to expose a `execvpe(3)` implementation in its libc. This commit renames the internal implementation to `__hsunix_execvpe` as well as adding an autoconf-detection for the presence of `execvpe(3)`, in which case `__hsunix_execvpe()` forwards the call to `execvpe(3)`. Moreover, the code has been cleaned up to remove likely bitrotted CPP conditionals. This should fix #22 (This also partially addresses #11 on platforms which have a libc-provided `execvpe(3)`)
* `M-x untabify` & `M-x delete-trailing-whitespace`Gravatar Herbert Valerio Riedel2013-11-08
| | | | | | ...on recently touched files Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Fix markup for function names in DEPRECATION messagesGravatar Herbert Valerio Riedel2013-11-08
| | | | | | This helps Haddock make tose hyperlinked functions. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Add `forkProcessWithUnmask` functionGravatar Herbert Valerio Riedel2013-11-08
| | | | | | This seemed to be an obvious addition while working on #8433. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Fix `forkProcess` to inherit caller's `MaskingState`Gravatar Herbert Valerio Riedel2013-11-08
| | | | | | | | | | ...and while at it, use `bracket` to fix a potential resource leak due to `freeStablePtr` not being called if `throwErrnoIfMinus1` throws an exception. This fixes #8433 Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Make compatible again for GHC back to 7.4.1Gravatar Herbert Valerio Riedel2013-10-12
| | | | | | | | | | | By avoiding `import Foreign` this accomplishes backward-compatibility w.r.t. the `unsafePerformIO` relocation w/o resorting to CPP conditionals. Moreover, in order to support base<4.7 this commits needs to reintroduce a harmless backport of `newFilePath`. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Add `changelog` file and `/Since: 2.7.0.0/` notesGravatar Herbert Valerio Riedel2013-10-12
| | | | | | | The changelog file will be shown on Hackage once it's included in the source tarball. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Declare language extensions via `{-# LANGUAGE -#}`Gravatar Herbert Valerio Riedel2013-10-12
| | | | | | | | | Only language extensions not active when `-XHaskell2010` is enabled are declared, this way we can drop many redundant `{-# LANGUAGE ForeignFunctionInterface #-}` occurences. This commit also removes/replaces some `{-# OPTIONS_GHC -XRecordWildCards #-}` pragmas. Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* Add "deprecated in" comments to deprecated pragmasGravatar Ian Lynagh2013-02-19
|
* Indicate whether a process dumped core in the ProcessStatusGravatar Simon Marlow2013-01-25
| | | | | | | | | | | | | | | The Bool field of Terminated is new, as is the documentation: data ProcessStatus = Exited ExitCode -- ^ the process exited by calling -- @exit()@ or returning from @main@ | Terminated Signal Bool -- ^ the process was terminated by a -- signal, the @Bool@ is @True@ if a core -- dump was produced | Stopped Signal -- ^ the process was stopped by a signal deriving (Eq, Ord, Show) This is an API change, hence will need a major version bump.
* Import waitpid() with interruptibleGravatar Simon Marlow2013-01-25
|
* Bump base lower version to 4.5 (the version GHC 7.4.1 came with)Gravatar Ian Lynagh2012-11-30
| | | | and remove code to support older versions
* fix documentation for getAnyProcessStatus/getGroupProcessStatus (#5946)Gravatar Simon Marlow2012-03-23
|
* forkProcess now works with +RTS -N; update docs and testsGravatar Simon Marlow2011-12-06
|
* Provide a raw ByteString version of FilePath and environment APIsGravatar Simon Marlow2011-11-22
| | | | | | | | | | | | | | | | | | | | | | | | | The new module System.Posix.ByteString provides exactly the same API as System.Posix, except that: - There is a new type: RawFilePath = ByteString - All functions mentioning FilePath in the System.Posix API use RawFilePath in the System.Posix.ByteString API - RawFilePaths are not subject to Unicode locale encoding and decoding, unlike FilePaths. They are the exact bytes passed to and returned from the underlying POSIX API. - Similarly for functions that deal in environment strings (System.Posix.Env): these use untranslated ByteStrings in System.Posix.Environment - There is a new function System.Posix.ByteString.getArgs :: [ByteString] returning the raw untranslated arguments as passed to exec() when the program was started.
* Use Safe Haskell when GHC >= 7.2Gravatar David Terei2011-08-03
|
* Remove unnecessary fromIntegral callsGravatar simonpj@microsoft.com2010-11-16
|
* Remove an incorrect commentGravatar Ian Lynagh2009-03-04
|
* Rewrite of signal-handling.Gravatar Simon Marlow2009-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | The API is the same (for now). The new implementation has the capability to define signal handlers that have access to the siginfo of the signal (#592), but this functionality is not exposed in this patch. #2451 is the ticket for the new API. The main purpose of bringing this in now is to fix race conditions in the old signal handling code (#2858). Later we can enable the new API in the HEAD. Implementation differences: - More of the signal-handling is moved into Haskell. We store the table of signal handlers in an MVar, rather than having a table of StablePtrs in the RTS. - In the threaded RTS, the siginfo of the signal is passed down the pipe to the IO manager thread, which manages the business of starting up new signal handler threads. In the non-threaded RTS, the siginfo of caught signals is stored in the RTS, and the scheduler starts new signal handler threads.
* Move System.Posix.Signals from baseGravatar Ian Lynagh2007-07-29
Also adds System.Posix.Process.Internals in order to make the deps work out.