Comments (7)
It would also be worth exposing the flags given to the dwCreationFlags
parameter of CreateProcess()
. Lots of useful options there for advanced scenarios.
Or even to take a cross-platform struct, something similar to
STARTUPINFO
?
Should also look at STARTUPINFOEX
here.
from zig.
@sensiblearts I still think this should remain open. Exposing the various CreateProcess
options is still worthwhile beyond just this particular use case.
from zig.
Sorry. Reopened.
(Also, after I closed it I noticed that it was added to a milestone!)
from zig.
@alexrp and @squeek502 , how should I proceed on this? Should I try to get a conversation going with some core maintainers, or should I fork it and take a stab at it myself? I've never requested a change to a std lib.
from zig.
speaking as an unqualified random person id say just give it a go, whats the worst that could happen?
from zig.
I guess the worst that could happen is that I waste a lot of time going in the wrong direction. I'm getting old :-)
from zig.
I found a workaround that may in the end be better. My goal is to minimize a spawned child process terminal.
On Windows, I can use cmd.exe
's start
command, which can take a /min
param; e.g., instead of spawning a NodeJS process directly, I write a .bat
file and spawn/run it. The .bat
file:
start "NJNODE" /min node ./index.js
I don't need a handle to the process to kill it, because it is named ("NJNODE"); instead, to kill it, I run another batch file:
taskkill /FI "WindowTitle eq NJNODE*" /T /F
I'm pretty sure I can accomplish something similar on posix systems, using nohup
or tmux
.
from zig.
Related Issues (20)
- fuzz testing: support Windows
- fuzzing: support more than one executable at once
- debug info audit - many virtual memory addresses have strange source locations
- `-OReleaseSafe` breaks fuzzing entry points feature; incorrect already-sorted assumption
- unreachable code paths need to be excluded from having coverage instrumentation
- more optimized and correct management of 8-bit PC counters
- fuzzer web interface: play a little jingle when it finds a bug!
- fuzzer web interface: ability to scroll to source locations that newly gain coverage HOT 1
- Ability to determine the file a module is in without complete knowledge of the compilations module dependency graph HOT 5
- --verbose-llvm-bc= compile option does not work when providing a file name
- ICE involving empty slice of anonymous struct type
- --unresolved-symbols seems not work for zig cc
- [Feature Request/Bug] Make MultiArrayList behave like normal ArrayList HOT 5
- compiler: remove unused struct fields HOT 7
- std.json: parsing: possibility for missing optional fields to not trigger an error HOT 2
- @alignOf() returns incorrect alignment for structs containing multiple SIMD vectors HOT 2
- Crash (likely undefined behavior) of `std.process.Child.run` in `ReleaseFast` mode only
- ICE: self-hosted generating an atom for an extern declaration
- translate-c misses an alignment cast in translated C code HOT 2
- proposal: change `zig fmt` to format lists of one item with spaces
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zig.