Places
Home
Graphs
Prefixes
Admin
Users
Settings
Plugins
Statistics
CPACK
Home
List packs
Submit pack
Repository
Load local file
Load from HTTP
Load from library
Remove triples
Clear repository
Query
YASGUI SPARQL Editor
Simple Form
SWISH Prolog shell
Help
Documentation
Tutorial
Roadmap
HTTP Services
Login
17 library(unix): Unix specific operations
All
Application
Manual
Name
Summary
Help
Documentation
Reference manual
Packages
SWI-Prolog C-library
library(unix): Unix specific operations
fork/1
fork_exec/1
exec/1
wait/2
kill/2
pipe/2
dup/2
detach_IO/1
detach_IO/0
prctl/1
sysconf/1
Availability:
:- use_module(
library(unix)
).
(can be autoloaded)
[det]
fork_exec
(
+Command
)
Fork (as
fork/1
) and exec (using
exec/1
) the child immediately. This behaves as the code below, but bypasses the check for the existence of other threads because this is a safe scenario.
fork_exec(Command) :- ( fork(child) -> exec(Command) ; true ).
ClioPatria
(version
V3.1.1-51-ga0b30a5
)