mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-30 23:23:07 +00:00 
			
		
		
		
	 549ee95f3d
			
		
	
	549ee95f3d
	
	
	
		
			
			Useful for old-style unix daemons, start up scripts, and so on. Easy to add on top of os/execute. May want to consider allowing the same IO redirection as os/execute and os/spawn. May also want to put both fork and exec behind a config switch since I suppose some systems may not support them, although I don't know of any concrete examples.
		
			
				
	
	
		
			6 lines
		
	
	
		
			102 B
		
	
	
	
		
			Janet
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			102 B
		
	
	
	
		
			Janet
		
	
	
	
	
	
| # Switch to python
 | |
| 
 | |
| (print "running in Janet")
 | |
| (os/posix-exec ["python"] :p)
 | |
| (print "will not print")
 |