Coder Social home page Coder Social logo

Comments (8)

itowlson avatar itowlson commented on July 2, 2024 1

(not you Kate. just the unfeeling cosmos in general)

from spin.

itowlson avatar itowlson commented on July 2, 2024

Confirmed finalisers do not appear to run.

from spin.

kate-goldenring avatar kate-goldenring commented on July 2, 2024

@itowlson I was able to repro this. With a neverends plugin:

#!/bin/bash

i=0
while true; do
   echo $i
   i=$(( i+1 ))
   sleep .5
done

Interestingly adding kill_on_drop(true) did resolve it for me. Stopping the spin (cargo run) process also killed the plugin process

    let mut command = Command::new(binary);
    command.args(args);
    command.envs(get_env_vars_map()?);
    command.kill_on_drop(true);

from spin.

itowlson avatar itowlson commented on July 2, 2024

Oh interesting! How did you stop the Spin process? In my case the parent process is kill_on_drop-ing the Spin process so maybe your way of stopping is giving it a chance to clean up okay. Thanks!

from spin.

itowlson avatar itowlson commented on July 2, 2024

I had to add a Ctrl+C handler to external - that seemed to work but more cruft sigh

from spin.

kate-goldenring avatar kate-goldenring commented on July 2, 2024

I cannot repro my success with my changes, so I agree that kill_on_drop does not work. Will also keep trying!

from spin.

itowlson avatar itowlson commented on July 2, 2024

AHHH THE CTRL+C HANDLER WORKED AND NOW IT DOESN'T

CURSE YOU ALL

from spin.

itowlson avatar itowlson commented on July 2, 2024

oh SOMETIMES it works

from spin.

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.