mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 15:43:01 +00:00 
			
		
		
		
	Only raise IOCP error on readable, writable, or acceptable streams.
We may create streams whose sole purpose is to wrap a file descriptor and therefor don't need to be IOCP enabled / nonblocking.
This commit is contained in:
		| @@ -131,6 +131,12 @@ | ||||
| (assert (= (os/perm-string 8r755) "rwxr-xr-x") "perm 8") | ||||
| (assert (= (os/perm-string 8r644) "rw-r--r--") "perm 9") | ||||
|  | ||||
| # Pipes | ||||
| (assert-no-error (os/pipe)) | ||||
| (assert-no-error (os/pipe :RW)) | ||||
| (assert-no-error (os/pipe :R)) | ||||
| (assert-no-error (os/pipe :W)) | ||||
|  | ||||
| # os/execute with environment variables | ||||
| # issue #636 - 7e2c433ab | ||||
| (assert (= 0 (os/execute [;run janet "-e" "(+ 1 2 3)"] :pe | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose