| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8
Comments:
<0> most posix systems have setjmp(foo) be the same as sigsetjmp(foo, 1) <0> Alex__, yea. longjmp() has to unblock signals the same way as siglongjmp() on posix systems <1> You could also unblock signals later on. That is perfectly acceptable. <0> yea. but it's hard to do in the new context since you probably are entering in the middle of doing something. <1> Race conditions are always a risk. <0> of course if you do like foo_yield() { if(!setjmp(blah)) { unblock_sigs() return; } } .. or whatever <1> Well, not a risk if you are careful. <0> well i don't have race conditions since it's non-preemptive. and blocked signals are queued. <1> It'd be nice if pselect actually worked everywhere. <0> i've actually done my threading library a few ways. i also did an implementation that used swapcontext. which was a bit more reliable than the sigaltstack, sitlongjmp trick. <0> Alex__, yea. totally. <0> you can do the same thing with kqueue though. <1> Yes. I've come to learn that kqueue is for the 21st century and some day I'll update my web page. <0> i usually have to do ugly calls to sigwaitinfo in my apps <0> linux still refuses to use kqueue because it's yet another kernel primitive. but honeslty it does not fit into being a file descriptor. <2> heh
<2> How many kernel primitives does Linux have? :-P <1> Then they should get rid of signal handlers and instead have a pipe processes can select() on the check for signals. <1> That'll elminate several primitives. <3> grr. trying to get php to look in /usr/lib64 instead of /usr/lib is not turning out to be real obvious <2> Alex__: Why? Signals are "trivial" in terms of upcalls. <0> well now you're really just asking for WaitForMultipleObjects() : <0> Samy, you might want to unblock select when you get a certain signal. <1> Samy: Do a web search for "safe unix signal handling" <2> Alex__: I know how signal handling works. <2> Alex__: and yes, in threaded environments, it can get tricky. <2> Alex__: It's still a nice functionality that is, in reality, trivial (there are bigger issues to deal with if you're looking to minimize exported primitives) <0> pipe(crap); void sig_handler() { write(crap[1], &ch, 1); } .. is kind of a ****ty way to hack around select not supporting signal waking <0> I thought EINTR was supposed to happen. but either my test program was broken, or EINTR doesn't happen on "normal" systems. <1> Just remember that no matter what, SIGKILL will still work. <0> i like that Doom game where it sends SIGKILL to processes that are represented in the game as monsters:) <2> heh <0> like the biggest meanest baddest monster is probably Firefox <1> OrageTide: I seem to remember that in Linux, a signal causes select to return ERESTARTBYHAND or something, and the library wrap tries again. <0> Alex__, yea. that's the traditional unix way. unix was critisized originally for choosing the simplier route of just having system calls restart in user space when a signal occurs. <0> VMS people were like "OMG, this is so gay". <0> but restarting this stuff in a library is a heck of a lot less complicated <1> Kernels love to shift things onto userspace. <0> that's because debugging kernels is a lot harder than debugging user space:) <0> plus kernel developers are lazy <0> well i gotta go. adios. <4> hooray for porn! <4> go free usenet <0> hooray beer! <0> (i like that commecial) <1> I'm always the ugly guy. <5> stdlib, stdout <0> Alex__, which is why you should drink red stripe. <6> the jamaican stuff? <0> yea. <6> tried it in miami <6> was good <6> they dont have that in quebec tho <6> afaik <0> damn frenchy quebecianese. <6> yeah, and as a norwegian i love my beer. <6> ;[ <0> ehhe <0> quebec has cheap resteraunts. <6> downtown montreal has expensive ones ;] <6> and cheap ones of course <0> yea. never tried the expensive ones. the cheap ones were really good though <6> im gonna check out a club located on the rooftop of a building this weekend, really high building too <6> but dresscode, so i had a new suit tailored <0> rip, you should check out the stratospehere in las vegas :P <6> expensive <6> anything like this: http://www.clubzone.com/c/Montreal/Nightclub/737_Altitude.html? <0> there are a bunch of rides on top of the strat. like roller coasters and rides that shoot you up. you can see all of los vegas from the top of that thing and there is nothing around you, you're just kind of "naked" hanging in the air for a moment before you drop back down. (i'm shaking already) <6> oh yeah <6> ive seen that <6> looks cool <0> i haven't gotten on it. but my buddy did. he loves rides but he said it scared the crap out of him. (of course he would do it again in a heartbeat) <6> ive yet to go to vegas, and with the way immigrations is treating me everytime i goto the us i probably never will. <6> that would be something worth the h***le to, perhaps. <0> the US needs to get it's **** together and open up it's borders. <6> yes :[ <6> this closing of them is driving me nuts
<0> the entire point of a democracy is to have an open society. <6> fingerprinting me and stuff for entering <6> yeah <0> well fingerprinting seems fine to me. <7> all the drug cartels would move north <0> i got fingerprinted just to have the honor of driving a motorcycle. <6> not me ;] i havent done anything wrong <7> to take advantahe of all the corruption <6> and incase i do anything wrong i dont want them to have them either! ;] <0> yea. i really don't like fingerprinting people who aren't criminals as if they were criminals. but honestly I don't have a better solution. <7> brand them <6> OrngeTide do what the rest of the world does: dont. <6> hthe US is the only country ive been to thats fingerprinted me <0> but i figured corporations and governments can already track everything you do through your credit/debit card and various discount membership cards. <0> rip, oh. there are a lot of countries that fingerprint now. <6> i make it a point not to rgister for that stuff. <7> which means you ought to get rid of such things <0> the US doesn't do it in all states. but they have been doing it for a while for all foriegn entry. <6> OrngeTide, well ive been in most of europe, marocco, turkey, thailand, canada etc. <0> sad part is we can't really search fingerprint databases in real time. so they take your fingerprint and pretty much just throw it away. <6> and never ever been fingerprinted <0> rip, like any of those countries can afford fingerprinting:P <6> infact, im clueless as to what other countries fingerprint <6> OrngeTide most of europe is rich <0> brits are pretty much on the verge of fingerprinting, if they don't already. <6> its been a couple of years since i went to britain, but last i went there i didnt get, and it was after 911 <0> germany and france will probably finger print by the end of this decade, i'm guessing <6> thats your guess <0> i used to take switch blades on the plane pre 9/11. <6> my point is <6> very very few countries do it <0> yea. the US is really big into fingerprinting. I'll admit that. <6> and the us is the only one ive been too that does .. but i havent been all around the globe either <0> probably because there are so many fake p***ports coming out of the middle east and eastern europe. <0> at least they aren't taking DNA <6> i thought the whole idea of p***ports was to id you, so they need to make better p***ports. <0> because then the US government could be secretly cloning norwegians to create army of super clones. <6> dont you mean super vikings? <0> rip, yea. most nations have like 19th century technology on their p***ports:P <6> thats the problem <0> super viking clones <6> and it needs to be fixed ;] <0> we have a bunch of treaties that means we have to somehow let people in. <0> honestly the US shouldn't even require a p***port for entry. **** them. just take a fingerprint at the gate and leave your name and cellphone number. the goverment will call you if you need to be arrested :) <6> yeah, but i for one dont wanna go, and much less spend money, anywhere its a h***le to get in <4> fingerprinting has been in the UK for decades.. <0> then it would take like 5 seconds and be just as secure as it currently is. <6> zid_ not on entry to the country zid <4> oh <4> no <4> I'm not going to the US if they do it <6> they do <0> rip, yea. that's what i don't like. we should make the US accessible for tourism. especially with the euro being so strong compared to the dollar. <6> im so pissed that my info is in some db i cant access <6> OrngeTide yeah the dollar just keeps sinking <4> My fingerprints don't exist as of next year <0> rip, a slightly weak dollar is usually a good thing. <0> rip, china has been doing fantastically well with thier artificially weak currency. <6> OrngeTide its very weak compared to what its been <6> in norway we keep our currency weak in purpose <4> it was like $1.90 to the pound not long ago :P <6> cuz we'd lose money making it stronger <0> yea. money should be pretty mobile. rigid monetary systems are what caused depressions in many countries in the early part of the 20th century. <0> it's like $0.80 USD to the $1.00 CDN last i checke.d <1> Money needs to be mobile and move into my pocket. Now. <0> if there was anything in canada worth seeing it would be a good time to take a vacation <6> Alex__ that would make you very very stationary <6> OrngeTide theres lots of things worth seing in canada <1> rip: And very very rich. <6> Alex__ touche <0> "What has it gots in its pocketses?" <0> rip, i've been to canada many times. i enjoy the parks, camping, hiking, etc there.
Return to
#c or Go to some related
logs:
#politics asharah.phalse.org
#red #delphi #windows #gamedev #freebsd STOPPING UNDERLINE TEXT IN PHOTOSHOP #firebird #windows
|
|