David Walter Seikel
fa091358dd
Figured this out finally.
...
SVN revision: 19927
2006-01-20 15:44:36 +00:00
doursse
2c32fdaca4
const char * here
...
SVN revision: 19919
2006-01-20 09:13:19 +00:00
David Walter Seikel
a92aef0a6b
Better documentation.
...
SVN revision: 19916
2006-01-20 04:48:31 +00:00
David Walter Seikel
96b9fe94e5
Fork'n'bitch is now operational.
...
TODO -
* Actually make the limits mean something.
* Clean up all that allocing and copying. I'm sure I could make that better.
SVN revision: 19915
2006-01-20 04:42:35 +00:00
Carsten Haitzler
f06d201516
remove duplicate paths
...
SVN revision: 19900
2006-01-19 09:32:18 +00:00
Carsten Haitzler
370108d580
a bit of work to make dns lookups happen in a forked child - the dns protocol
...
stuff, though nice and cool, is having problems with multiple listing returns
and more with segv's, so this is the fastest/easiest fix right now - all the
old code is still there.
SVN revision: 19899
2006-01-19 09:11:30 +00:00
handyande
3b4b47eb77
Fix up RGB parsing and the string output - bad someone...
...
SVN revision: 19890
2006-01-18 12:36:51 +00:00
handyande
a35fb4d4a7
Sorry Morten, this append func got broken - do not have time to debug, so am rolling it back
...
SVN revision: 19889
2006-01-18 12:35:06 +00:00
David Walter Seikel
29b4630756
Seperate the data event code from the fd handler code in preparation for
...
fork'n'bitch.
SVN revision: 19876
2006-01-17 11:33:39 +00:00
David Walter Seikel
0f5da34bce
Commit API now, write code later.
...
Actually, this may turn into a can of worms, so comments would be useful.
Search for "can of worms" in ecore_exe.c for some commentary. Personally,
I worry that we may have gone overboard, polling is bad 'mkay.
SVN revision: 19859
2006-01-16 13:21:52 +00:00
David Walter Seikel
aa1b75baec
Dammit.
...
SVN revision: 19853
2006-01-16 09:52:56 +00:00
David Walter Seikel
bfa592058a
Beginnings of the feature previously known as fork'n'bitch. Now it will be
...
a bit more general purpose.
SVN revision: 19852
2006-01-16 09:47:59 +00:00
David Walter Seikel
e754564803
Refactoring the exe exit stuff.
...
SVN revision: 19844
2006-01-16 03:20:36 +00:00
David Walter Seikel
e109255415
More ecore_exe naming break'n'fix. Should be all done now.
...
SVN revision: 19832
2006-01-15 11:27:19 +00:00
David Walter Seikel
8ff26002a5
* ecore_exe events now get allocated just like other events.
...
* added ECORE_EXE_EVENT_ADD and support code.
SVN revision: 19758
2006-01-13 13:18:36 +00:00
David Walter Seikel
d08ccf6fa6
Minor API breakage and fixage.
...
SVN revision: 19757
2006-01-13 06:38:44 +00:00
David Walter Seikel
cf29de295c
* Preperation before making the exe events consistant.
...
* Inlining a function that is only used once.
* More comments.
SVN revision: 19756
2006-01-13 04:31:41 +00:00
Carsten Haitzler
80dbc9fa05
big fat asparagus!
...
SVN revision: 19736
2006-01-12 05:43:08 +00:00
Dan Sinclair
a74f72c2ad
- these data structures are never compiled with locking anymore so remove
...
the locks.
SVN revision: 19732
2006-01-12 03:01:58 +00:00
rbdpngn
f1bc839522
Revert disown call and force the parent to check if it created the socket
...
before unlinking it.
SVN revision: 19714
2006-01-11 05:13:23 +00:00
David Walter Seikel
2bc2ef0db6
Merged the two almost identical fd handlers.
...
SVN revision: 19703
2006-01-10 18:36:19 +00:00
David Walter Seikel
20a8865152
* fork'n'pipe now has stderr support.
...
* both exe run functions now use the same code.
* don't allocate pipes that wan't be used. This made the code much cleaner.
* track and free the exe timers as needed.
E still reports a naughty null timer free at shutdown time, but I don't
think its in ecore_exe. I'll valgrind it later.
The error fd handler is curently an identical copy of the read fd handler,
with only the names changed. That's a big slab of code that is duplicated.
I'll merge the two into something generic next.
raster also mentioned that say the first ten lines or so of stderr should
be thrown into a dialog and shown to the user. I don't know if there is a
way to do that from ecore, or if the user of ecore_exe has to do that
themselves. The stderr support does line buffered mode just like the read
support, but has not been tested yet. I'll test properly after the merge.
SVN revision: 19700
2006-01-10 16:46:07 +00:00
David Walter Seikel
5e78588f50
Damn typos. Well, at least I didn't break cvs.
...
SVN revision: 19693
2006-01-10 12:26:31 +00:00
David Walter Seikel
c4cf8905c4
Preparation for adding stderr to fork'n'pipe. The rest cames later tonight.
...
SVN revision: 19692
2006-01-10 11:15:38 +00:00
Carsten Haitzler
dcd2b68e49
indenting...
...
SVN revision: 19689
2006-01-10 08:44:15 +00:00
Carsten Haitzler
0f9188f1d2
vis -> off
...
SVN revision: 19683
2006-01-10 07:36:51 +00:00
Carsten Haitzler
a8ac626eb0
include changes
...
SVN revision: 19676
2006-01-09 13:36:22 +00:00
handyande
54694c9d01
format
...
SVN revision: 19661
2006-01-08 19:50:42 +00:00
handyande
229e127911
Latest Morten patch and some fixes
...
SVN revision: 19660
2006-01-08 19:45:11 +00:00
handyande
7c24ebf4e0
Morten Nilsen's latest patches for ecore_config argb etc
...
SVN revision: 19655
2006-01-08 14:57:14 +00:00
rbdpngn
ea0749e88a
Allow servers to disown their sockets. Allows for closing after a fork()
...
without unlinking the socket in the filesystem.
SVN revision: 19636
2006-01-08 07:42:56 +00:00
Carsten Haitzler
6249f12f2f
eek. formatting!
...
SVN revision: 19635
2006-01-08 07:15:27 +00:00
Mike Frysinger
f91bf649a7
make sure _ecore_con_url_data_cb is declared static in both places (prototype and definition) as reported by Vladimir Lushnikov via e-mail
...
SVN revision: 19632
2006-01-08 02:37:50 +00:00
sebastid
9bd391e812
Silence
...
SVN revision: 19596
2006-01-07 09:23:39 +00:00
Kim Woelders
640fd3375b
Add missing.
...
SVN revision: 19593
2006-01-07 08:32:26 +00:00
Carsten Haitzler
cb2dc9c0d7
headers before setting up symbol hiding
...
SVN revision: 19588
2006-01-07 06:48:56 +00:00
Kim Woelders
4b3320bfd0
Fix warnings.
...
SVN revision: 19578
2006-01-06 21:56:05 +00:00
David Walter Seikel
ace06b37f6
At rasters request, I followed his example and told them all to stfu.
...
SVN revision: 19573
2006-01-06 20:22:09 +00:00
David Walter Seikel
770cb8b3b9
I noticed some duplicates.
...
SVN revision: 19572
2006-01-06 20:18:41 +00:00
Carsten Haitzler
f22ac19a1e
no more warnings
...
SVN revision: 19570
2006-01-06 18:51:30 +00:00
Carsten Haitzler
07ce0152b6
and less warnings!
...
SVN revision: 19569
2006-01-06 18:47:56 +00:00
Carsten Haitzler
2c52634e85
and yet more warning removal
...
SVN revision: 19568
2006-01-06 18:46:30 +00:00
Carsten Haitzler
651a356e6a
warnings - hush.
...
SVN revision: 19567
2006-01-06 18:26:37 +00:00
Carsten Haitzler
5ff5b1a64b
shhh!
...
SVN revision: 19566
2006-01-06 18:06:23 +00:00
Carsten Haitzler
f85e3b839c
no more warnings
...
SVN revision: 19565
2006-01-06 18:05:08 +00:00
Carsten Haitzler
12aa35dd99
fix up some warnings
...
SVN revision: 19563
2006-01-06 17:58:12 +00:00
Carsten Haitzler
e886d21d78
example fixes
...
SVN revision: 19560
2006-01-06 15:32:46 +00:00
Carsten Haitzler
5ba10bb385
symbol hiding fixes
...
SVN revision: 19556
2006-01-06 13:56:47 +00:00
Kim Woelders
34cf6187a7
Add some utility functions for get/setting window properties.
...
Move a number of ecore_x_window_prop_property_get/set calls to the new ones.
Eliminate broken (64bit arch) _ATOM_SET_... macros.
New functions should be solid as they have been in e16 for ages.
Changes in ecore_x_icccm/netwm.c have not been tested thoroughly.
SVN revision: 19543
2006-01-05 21:41:30 +00:00
David Walter Seikel
29f6991aa1
Oops, forgot to commit this.
...
SVN revision: 19536
2006-01-05 10:04:50 +00:00
David Walter Seikel
a62dc114c7
Consistancy rules, 'mkay.
...
SVN revision: 19531
2006-01-04 20:53:07 +00:00
David Walter Seikel
e1adc2f81b
Bugger, thought I got rid of that a long time ago.
...
SVN revision: 19530
2006-01-04 20:36:56 +00:00
David Walter Seikel
2369a9c01e
Damn typo.
...
SVN revision: 19529
2006-01-04 20:33:58 +00:00
David Walter Seikel
6959704eff
Updated to reflect API change.
...
SVN revision: 19528
2006-01-04 20:29:28 +00:00
David Walter Seikel
ad6a5a6c70
The beginnings of an effort to make ecore_exe fork'n'pipe more consistant
...
with ecore_con and ecore_ipc. Probably best to have all IPC methods work
the same way.
SVN revision: 19527
2006-01-04 20:28:12 +00:00
David Walter Seikel
b1925fb4bf
Unimportant typo.
...
SVN revision: 19526
2006-01-04 19:53:34 +00:00
David Walter Seikel
e1b7ef2a78
Documentation of issues involved with implementing respawn.
...
SVN revision: 19524
2006-01-04 16:33:25 +00:00
David Walter Seikel
c990136eab
* More robust method of checking if the fd's need to be closed.
...
* Minor preperation for respawn.
SVN revision: 19523
2006-01-04 16:29:36 +00:00
codewarrior
93dd8ce0fc
- ++authors
...
- add ecore_file_symlink
SVN revision: 19506
2006-01-03 00:18:42 +00:00
David Walter Seikel
07a7a2b05c
Forgot to commit this yesterday, but it's just trivial formatting.
...
SVN revision: 19489
2006-01-02 07:44:51 +00:00
David Walter Seikel
5a4061bf1b
Just another excuse to terminate those pesky exe's.
...
SVN revision: 19477
2006-01-01 21:20:42 +00:00
David Walter Seikel
f26fc9014e
Just to be paranoid, and coz devilhorns caught it doing this, check for
...
various naughty timeout values.
SVN revision: 19476
2006-01-01 20:29:34 +00:00
David Walter Seikel
c06b7a851f
If you terminate an exe, make sure it really is terminated.
...
Check it's pulse, hold a mirror to it's mouth, check for brain activity.
Pump another round or two into it, cut off it's head, put a stake through
it's heart.
Sprinkle holy water over it's corpse, hold a black mass to ask Lucifer if
it turned up in hell yet, consult the entrails of rasters three headed
chicken.
If all else fails, complain that the bitch is still alive, and stronger
measures will be needed.
SVN revision: 19475
2006-01-01 20:09:47 +00:00
David Walter Seikel
56a0bc26d9
Doh! Should double the reported throughput, since it measures the bytes in
...
both directions. The reported speed in the last commit message I doubled
manually, so it is correct.
NOTE - write speed is hard to time, as it happens asynchronously.
SVN revision: 19473
2006-01-01 17:25:17 +00:00
David Walter Seikel
28923a44ba
* More accurate throughput tests by removing most of the overhead.
...
* Don't fill the timing tests with stdio shit, gives much better results.
Now the only overhead is a tiny fraction of the tested time.
140MB/s in both directions in line buffered mode on my lightly loaded Athlon 3000.
SVN revision: 19472
2006-01-01 17:20:33 +00:00
Christopher Michael
ccc3de03a5
Formatting
...
SVN revision: 19468
2006-01-01 04:18:38 +00:00
Christopher Michael
60cb25623b
Don't try to printf e->exe->cmd if e->exe doesn't exist
...
SVN revision: 19467
2006-01-01 04:02:52 +00:00
doursse
7e670e0c2a
oups
...
SVN revision: 19449
2005-12-31 09:24:27 +00:00
handyande
4e0e175bf8
Cleanup of lib from Morten Nilsen - thanks
...
SVN revision: 19434
2005-12-30 20:10:01 +00:00
David Walter Seikel
b2bb84d0e8
Clean up.
...
SVN revision: 19432
2005-12-30 19:28:54 +00:00
David Walter Seikel
6138286a77
* Should now shut down properly when all exe's finish.
...
* All exe's should now finish. B-)
* If called with a file as an argument, it will use the contents of that file as a R/W performance test.
SVN revision: 19431
2005-12-30 19:19:59 +00:00
David Walter Seikel
8bb13800f8
* exe exit event delay method changed.
...
* Added method to close an exe's stdin in a (probably) vain attempt to convince exe to exit.
* Other debugging shit.
SVN revision: 19430
2005-12-30 19:17:21 +00:00
rbdpngn
e37b4166d8
Free the strdup'd string when destroying a theme property.
...
SVN revision: 19351
2005-12-28 21:42:08 +00:00
doursse
ae2bff67cc
leak--
...
SVN revision: 19318
2005-12-27 19:21:58 +00:00
Carsten Haitzler
7554f8ee36
actually make symbol hiding work!
...
SVN revision: 19314
2005-12-27 17:17:31 +00:00
David Walter Seikel
cdebf436cf
Fixup the FIXME's.
...
SVN revision: 19283
2005-12-24 12:22:47 +00:00
David Walter Seikel
f302260188
Generic errno checking.
...
SVN revision: 19282
2005-12-24 12:13:12 +00:00
David Walter Seikel
826b9c196b
Clone another e.h macro. Maybe these should be combined to a common place?
...
SVN revision: 19281
2005-12-24 12:11:39 +00:00
doursse
3931df64c9
leak--
...
SVN revision: 19280
2005-12-24 10:28:08 +00:00
David Walter Seikel
f1ecb69e85
Make sure that the Last Words of a dead exe are preserved for future generations.
...
SVN revision: 19140
2005-12-19 05:07:58 +00:00
David Walter Seikel
a119e26657
More documentation for fd_handler return values as per the mailing list discussion.
...
SVN revision: 19129
2005-12-19 01:36:55 +00:00
lordchaos
d6f417c8d1
* Apparantly, strings returned by setlocale() are not supposed to be freed/modified.
...
See: http://www.mkssoftware.com/docs/man3/setlocale.3.asp
SVN revision: 19124
2005-12-18 23:08:57 +00:00
handyande
414d3e5352
latest patch from Morten Nilsen:
...
- fix indent in various places
- check flag rather than walking list in util
- eliminate multiple key searches while saving
- optimizations
SVN revision: 19115
2005-12-18 19:07:52 +00:00
lordchaos
ab419159e9
* Clear _source->dest after drag, so if the next drag has the same source window, we still get dnd_position events if we stay inside the same window.
...
SVN revision: 19078
2005-12-16 23:04:49 +00:00
David Walter Seikel
0a4a3d8cfc
The line dancing craze spreads it's evil tenticles.
...
SVN revision: 19064
2005-12-16 04:03:04 +00:00
David Walter Seikel
6194429534
The fork'n'pipe knows line dancing!
...
Er, I mean line buffering.
It's slightly different from what raster wanted. I'll update the example next.
SVN revision: 19063
2005-12-16 03:36:16 +00:00
David Walter Seikel
5ed307efed
Document that the lines array is NULL terminated.
...
SVN revision: 19062
2005-12-16 03:33:52 +00:00
David Walter Seikel
a4f340d074
Preperation for line buffering, coming soon. Just gotta spend the rest of the day testing it.
...
SVN revision: 19056
2005-12-16 01:11:24 +00:00
David Walter Seikel
9b4adfbd25
The FIXME's have been.
...
SVN revision: 19055
2005-12-16 01:09:52 +00:00
David Walter Seikel
79e003fe0b
I'm on a .cvsignore cleanup spree. Guess I can take care of this one myself.
...
SVN revision: 18971
2005-12-12 16:49:43 +00:00
Carsten Haitzler
e430a7e6fc
delete timer on 0 return AND if manually deleted prefer the delete over the
...
continue return of 1
SVN revision: 18954
2005-12-11 14:33:21 +00:00
Carsten Haitzler
7475ec3508
exe pipe example and other exe (no pipe) example. :)
...
SVN revision: 18951
2005-12-11 06:52:07 +00:00
handyande
e270ac86eb
getopt long patch from Morten Nilsen - thanks
...
SVN revision: 18946
2005-12-11 03:32:18 +00:00
David Walter Seikel
ba872e4bf9
Turn off the write handler when not needed.
...
SVN revision: 18943
2005-12-11 00:11:12 +00:00
David Walter Seikel
82021edf95
Time I added myself.
...
SVN revision: 18940
2005-12-10 22:40:34 +00:00
David Walter Seikel
7df068b625
Fork'n'pipe now actually pipes.
...
SVN revision: 18939
2005-12-10 22:39:51 +00:00
codewarrior
48e0355efe
- ecore_file_size
...
SVN revision: 18916
2005-12-09 00:02:21 +00:00
handyande
0e7786ecc4
woops on the last patch
...
SVN revision: 18913
2005-12-08 12:35:11 +00:00
handyande
a8752bb121
Thanks Morten Nilsen for your ecore_config patches - applied here and working nicely
...
SVN revision: 18903
2005-12-07 23:30:29 +00:00
Carsten Haitzler
068266c8a2
another util function - list all executables in your $PATH - in full.
...
SVN revision: 18890
2005-12-07 07:18:52 +00:00