GithubHelp home page GithubHelp logo

Comments (7)

alexrp avatar alexrp commented on August 11, 2024 2

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.

alexrp avatar alexrp commented on August 11, 2024 1

@sensiblearts I still think this should remain open. Exposing the various CreateProcess options is still worthwhile beyond just this particular use case.

from zig.

sensiblearts avatar sensiblearts commented on August 11, 2024 1

Sorry. Reopened.

(Also, after I closed it I noticed that it was added to a milestone!)

from zig.

sensiblearts avatar sensiblearts commented on August 11, 2024

@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.

JonathanHallstrom avatar JonathanHallstrom commented on August 11, 2024

speaking as an unqualified random person id say just give it a go, whats the worst that could happen?

from zig.

sensiblearts avatar sensiblearts commented on August 11, 2024

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.

sensiblearts avatar sensiblearts commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.